<template>
    <div v-if="isShow" :class="[{'success':type==='success'},{'waring':type==='waring'}]">
        {{msg}}
    </div>
</template>

<script>
export default {
    data(){
        return {
            msg:'',
            type:'',
            isShow:true
        }
    }
}
</script>

<style scoped lang="scss">
div{
    width: 800px;
    height: 100px;
    border-radius: 10px;
    text-align: center;
    line-height: 100px;
    margin: 10px auto;
    }
    .success{
        background: rgb(95, 238, 95);
    }

    .waring{
        background: rgb(228, 16, 16);
    }
</style>

